
import request from '@/utils/request'
//分页查询产品列表
export function selectPage(data) {
  return request({
    url: '/goods/page',
    method: 'post',
    data
  })
}


//删除
export function deleteById(id) {
    return request({
      url: `/goods/delete/${id}`,
      method: 'get',
    })
}
//修改

export function update(data) {
    return request({
      url: '/goods/update',
      method: 'post',
      data
    })
}
//保存
export function save(data) {
    return request({
      url: '/goods/save',
      method: 'post',
      data
    })
  }